"""
开发环境配置
"""

CONFIG = {
    # 主机配置
    "hosts": {
        "host": "http://test-ls.shuwen.com/web/luoshu-rongmei",
        "account_host": "http://test-rongmei.shuwen.com/web/uic",
        "account_host2": "http://test-ls.shuwen.com/web/mgc-account/entitle",
        "message_host": "http://test.api.shuwen.com/access",
        "audit_host": "https://test-ls.shuwen.com/audit-service",
        "data_host": "http://test-ls.shuwen.com/web/luoshu-rongmei-data",
        "media_host": "http://test.api.shuwen.com/web/mediax-busi-platform",
        "deliver_host": "http://test-ls.shuwen.com/web/deliver",
        "spread_host": "http://test-ls.shuwen.com/web/spreadroom",
        "download_host": "http://test-ls.shuwen.com/web",
        "onethreefive_host": "https://www.135editor.com",
        "host_ip": "118.31.181.18"
    },

    # 账号配置
    "accounts": {
        "admin": {
            "auth_key": "wzk@luoshuadmin",
            "password": "afdd0b4ad2ec172c586e2150770fbf9e",
            "user_id": "245405336488401922",
            "user_name": "王志坤",
            "department_id": "246130721809246214",
            "role_id": "6107"
        },
        "receive": {  # 下级租户
            "auth_key": "admin@lsxj",
            "password": "04f2917f9dcfbae907d7d82124afbc76"
        },
        "autotest": {  # 自动化测试账号
            "auth_key": "autotest@luoshuadmin",
            "password": "afdd0b4ad2ec172c586e2150770fbf9e",
            "user_id": "247298155762172947",
            "user_name": "自动化测试",
            "department_id": "254288535474950155",
            "role_id": "6107"
        },
        "user1": {
            "auth_key": "feili@luoshuadmin",
            "password": "afdd0b4ad2ec172c586e2150770fbf9e",
            "user_id": "245406315312060426",
            "user_name": "王斐力"
        }
    },

    # 稿件配置
    "manuscripts": {
        "graphic_name": "自动化创建图文稿",
        "video_name": "自动化创建视频稿",
        "video_name2": "自动化创建视频稿_bigVideo",
        "short_text_name": "自动化创建微博稿"
    },

    # 审批配置
    "audit": {
        "no_audit_name": "志坤免审",
        "publish_no_audit_name": "志坤发布免审",
        "audit_name": "新建自己审",
        "publish_name": "志坤发布审核",
        "audit_template_id": "9da303f2cf87467c8b5c10eee1f9a40c",
        "template_version": "1658298641817"
    },

    # 发布渠道配置
    "distribution": {
        "account_name": "Ashoftime03032",
        "video_account_name": "xhzy测试",
        "douyin_account_id": "xhzy测试",
        "weixin_account_name": "xhzy测试"
    },

    # 媒体资源
    "media": {
        "short_media": "m_7ce182c2-fbb5-4629-922c-e4898750d76c",
        "weixin_cover1": "https://idst-video-img.oss-cn-hangzhou.aliyuncs.com/video/20210419/m4b7faebe-033e-4274-1e7c-3c2bc57264ba.jpeg",
        "weixin_cover2": "https://idst-video-img.oss-cn-hangzhou.aliyuncs.com/video/20210419/m909fb208-9681-6b9f-5682-cf670666b546.jpeg",
        "weibo_cover1": "https://idst-video-img.oss-cn-hangzhou.aliyuncs.com/video/20210419/m599a1a4d-aa73-c873-dc24-1b0dd9359def.jpeg",
        "video_cover": "https://xhzy-media-manage.oss-cn-hangzhou.aliyuncs.com/material/5c6b8f39894c1eaba50c6c02c41422b8/2020/0909/thumb/ea764c740d4f44a68ce0657d043f8e19/00001.jpg",
        "media_id": "m_4fedf5a2-e413-4147-ae04-16989d61d236",
        "media_id_big": "m_bff079b2-da02-43ad-a4fb-b75aca691041",
        "pic_oss": "https://idst-video-img.oss-cn-hangzhou.aliyuncs.com/idst-video-img/m7fe8be8f-a802-1d1b-3920-3ace1c8b0e08.jpeg",
        "pic_media": "m_de6e23b5-c657-4293-b895-ccb834c15304",
        "video_oss": "https://idst-video-img.oss-cn-hangzhou.aliyuncs.com/idst-video-img/me19152cb-b6eb-5215-c4e3-4c79e932bc48.mp4",
        "video_media": "m_2fb6337f-ba40-4ccf-9320-5212db9e354e",
        "word_oss": "https://idst-video-img.oss-cn-hangzhou.aliyuncs.com/idst-video-img/m4a59d7cf-99e9-8969-3cfb-7a10838aced2.doc",
        "word_media": "m_e988827e-21ab-477d-a238-1f3fb7c36a88"
    },

    # 部门配置
    "departments": {
        "auto_test": "254288535474950155",
        "gaoku": "235717441040154625",
        "name": "自动化新建部门"
    },

    # 角色配置
    "roles": {
        "name": "自动化新建角色",
        "full_function": "6107"
    },

    # 业务数据
    "business": {
        "task_id": "20211119171031379006032342331448",
        "clue_id": "2f977289fe7e4c26b3cd09caad49944c",
        "topic_id": "efea48e320be47d5a24b26122fd66022",
        "apply_id": "",
        "manuscript_id": ""
    },

    # 共享文件夹
    "shared_folders": {
        "folder1": "fd_551ac6ee92284666ab2a9f086302f2c0",
        "folder2": "fd_82539695411743339dde2ada88ab9e8b"
    },

    # 第三方集成
    "integration": {
        "weixin_url": "https://mp.weixin.qq.com/s/V2pY6_EG3HXqH2PwjHTO5A",
        "chromedriver_path": "",
        "dingtalk_webhook": "https://oapi.dingtalk.com/robot/send?access_token=c9518f1c677a0f87ccc343151a9a520233962a7b3175710a3a7157d7c55faaee"
    },

    # API配置
    "api": {
        "timeout": 30,
        "retry_count": 3,
        "retry_delay": 1,
        "max_connections": 100
    },

    # 测试配置
    "test": {
        "wait_time": 2,
        "max_wait_time": 10,
        "screenshot_on_failure": True,
        "save_response": True
    }
}
